<?php

namespace pam\Factory;

/**
 * Description of PolicyDataAccessFactory
 *
 * @author Robert Bwana
 */
use Zend\ServiceManager\FactoryInterface;
use pam\Mapper\PolicyDataAccess;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Stdlib\Hydrator\ClassMethods;
use pam\Model\Policy;
use pam\Model\PolicyGoal;

class PolicyDataAccessFactory implements FactoryInterface{
    public function createService(ServiceLocatorInterface $serviceLocator) {
        return new PolicyDataAccess($serviceLocator->get('Zend\Db\Adapter\Adapter'),
                new ClassMethods(false),
                new Policy(),
                new PolicyGoal()
                );
    }

}
